import ajax from '@/utils/request.js'

export function getSchemeList(data) {
    return ajax({
        url: '/storehouse/schemePage',
		method: 'GET',
        data
    })
}

export function addScheme(data) {
    return ajax({
        url: '/storehouse/addScheme',
		method: 'POST',
        data
    })
}

export function getSchemeDetail(id) {
    return ajax({
        url: '/storehouse/storehouseDetail/' + id,
		method: 'GET'
    })
}

export function editScheme(data, id) {
    return ajax({
        url: '/storehouse/updateScheme/' + id,
		method: 'PUT',
        data
    })
}

// 删除方案
export function delScheme(id) {
    return ajax({
        url: '/storehouse/del/' + id,
		method: 'DELETE'
    })
}

//根据方案id获取方案列表
export function getSchemeMaynDetail(ids) {
    return ajax({
        url: '/storehouse/questionMaynDetail/' + ids,
		method: 'GET'
    })
}